<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>  
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="http://cdn.bootcss.com/jquery/1.10.2/jquery.min.js" ></script>
<script type="text/javascript">
	$(function(){
		findInsuranceForm();
	});
	function findInsuranceForm(){
		var productId=$("#id").val();
		$.post("/insuranceListStep2",{"id":productId},function(data){
			$("#resultDiv").html(data);
		})
	}
	
	function doEndor(id){
		$.post("/toEndorSelection",{"id":id},function(data){
			
		})
		window.location.href="/"
	}
	
</script>
</head>
<body>
	请选择产品
	<select id="id" name="id" onchange="findInsuranceForm()">
		<c:forEach items="${product}" var="product" varStatus="status">
			<option value="${product.id }" >${product.productName }</option>
		</c:forEach>
	</select><br/><br/>
	
	<div id="resultDiv">
	</div>
	
</body>
</html>